Add max length truncation to displayed profile attributes to mitigate spam
Changelog-Fixed: Add max length truncation to displayed profile attributes to mitigate spam Fixes: #1237
This commit is contained in:
@@ -22,7 +22,7 @@ struct ReplyView: View {
|
||||
.map { pubkey in
|
||||
let pk = pubkey.ref_id
|
||||
let prof = damus.profiles.lookup(id: pk)
|
||||
return "@" + Profile.displayName(profile: prof, pubkey: pk).username
|
||||
return "@" + Profile.displayName(profile: prof, pubkey: pk).username.truncate(maxLength: 50)
|
||||
}
|
||||
.joined(separator: " ")
|
||||
if names.isEmpty {
|
||||
|
||||
Reference in New Issue
Block a user