Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjmarf committed Dec 12, 2024
1 parent 59ce59d commit b59dad9
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,18 @@ extension Comment1Providing {
downvoteAction(feedback: feedback)
saveAction(feedback: feedback)
replyAction(commentTreeTracker: commentTreeTracker)
selectTextAction()
if !deleted {
selectTextAction()
}
shareAction()

if isOwnComment {
editAction()
deleteAction(feedback: feedback)
} else {
reportAction()
if !canModerate, !deleted {
reportAction()
}
blockCreatorAction(feedback: feedback)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ extension Message1Providing {
replyAction()
markReadAction(feedback: feedback)
}
selectTextAction()
if !deleted {
selectTextAction()
}
if isOwnMessage {
deleteAction(feedback: feedback)
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ extension Post1Providing {
downvoteAction(feedback: feedback)
saveAction(feedback: feedback)
replyAction(commentTreeTracker: commentTreeTracker)
selectTextAction()
if !deleted {
selectTextAction()
}
shareAction()

if isOwnPost {
Expand All @@ -167,7 +169,7 @@ extension Post1Providing {
if (api.fetchedVersion ?? .zero) >= .v19_4 {
hideAction(feedback: feedback)
}
if !canModerate {
if !canModerate, !deleted {
reportAction()
}
blockAction(feedback: feedback)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,14 @@ extension Reply1Providing {
replyAction()
markReadAction(feedback: feedback)
if let comment = self2?.comment {
comment.selectTextAction()
if !comment.deleted {
comment.selectTextAction()
}
comment.shareAction()
if !comment.deleted {
reportAction()
}
}
reportAction()
blockCreatorAction(feedback: feedback)
}
}
Expand Down

0 comments on commit b59dad9

Please sign in to comment.