Modify the way Friends are added

This commit is contained in:
nertc 2025-01-14 11:32:54 +04:00
parent 1732325768
commit 2b7a48029b
14 changed files with 77 additions and 77 deletions

View file

@ -28,7 +28,7 @@ class DiaryEntriesController < ApplicationController
end
elsif params[:friends]
if current_user
@title = t ".title_friends"
@title = t ".title_followed"
entries = DiaryEntry.where(:user => current_user.friends)
else
require_user