commit 4c774f2dda6215dcde4a61f24630aa972cea511e
parent b8ec3493dc8450a1c34159a7964be9a0543d8eb5
Author: Terry Yiu <git@tyiu.xyz>
Date: Mon, 10 Jul 2023 22:56:37 -0400
Fix PostView initial string to skip mentioning self when on own profile
Changelog-Fixed: Fix PostView initial string to skip mentioning self when on own profile
Signed-off-by: Terry Yiu <git@tyiu.xyz>
Reviewed-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/damus/Views/PostView.swift b/damus/Views/PostView.swift
@@ -190,7 +190,8 @@ struct PostView: View {
func initialString() -> NSMutableAttributedString {
guard case .posting(let target) = action,
- case .user(let pubkey) = target else {
+ case .user(let pubkey) = target,
+ damus_state.pubkey != pubkey else {
return .init(string: "")
}