Skip to content

Commit

Permalink
update function name and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
pelumy committed Jan 29, 2025
1 parent bcdeb39 commit 2b7c6b6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Nos/Models/CoreData/Author+CoreDataClass.swift
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,10 @@ import Logger
await currentUser.publishMuteList(keys: Array(Set(mutedList)))
}

/// Returns true if this event tagged the given author.
func this(author: Author) -> Bool {
// Checks if this author has received a follow notification from the specified author.
/// - Parameter author: The author to check for a follow relationship
/// - Returns: `true` if the specified author follows this author, `false` otherwise
func hasReceivedFollowNotification( from author: Author) -> Bool {
followNotifications.contains(where: { element in
(element as? NosNotification)?.follower == author
})
Expand Down

0 comments on commit 2b7c6b6

Please sign in to comment.