diff --git a/pkg/models/muted_users.go b/pkg/models/muted_users.go index 095b19f..128b0b3 100644 --- a/pkg/models/muted_users.go +++ b/pkg/models/muted_users.go @@ -85,7 +85,7 @@ func PaginateMuteList(user *User, pager *Pagination) ([]*User, error) { return nil, result.Error } - // Now of these friends get their User objects. + // Now of these users get their User objects. for _, b := range ms { userIDs = append(userIDs, b.TargetUserID) } @@ -101,9 +101,3 @@ func RemoveMutedUser(sourceUserID, targetUserID uint64, ctx MutedUserContext) er ).Delete(&MutedUser{}) return result.Error } - -// Save photo. -func (m *MutedUser) Save() error { - result := DB.Save(m) - return result.Error -} diff --git a/web/templates/photo/gallery.html b/web/templates/photo/gallery.html index 4b9102f..b38a654 100644 --- a/web/templates/photo/gallery.html +++ b/web/templates/photo/gallery.html @@ -91,13 +91,11 @@ {{define "mute-site-gallery"}} -
-
- - - Don't show {{.User.Username}}'s photos - -
+
+ + + Don't show {{.User.Username}}'s photos +
{{end}} @@ -604,7 +602,7 @@ {{if not $Root.AdminView}} -
+
{{$Like := $Root.LikeMap.Get .ID}}