commit e6429139449b1b03a4dab744569c873a5aee3227
parent 967785392fb948422f846f4831f9b223c7132847
Author: William Casarin <jb55@jb55.com>
Date: Sun, 6 Aug 2023 14:58:32 -0700
notifications: don't cutoff text
Changelog-Fixed: don't cutoff text in notifications
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/damus/Models/HomeModel.swift b/damus/Models/HomeModel.swift
@@ -1189,7 +1189,7 @@ func create_in_app_event_zap_notification(profiles: Profiles, zap: Zap, locale:
func render_notification_content_preview(cache: EventCache, ev: NostrEvent, profiles: Profiles, privkey: Privkey?) -> String {
- let prefix_len = 50
+ let prefix_len = 300
let artifacts = cache.get_cache_data(ev.id).artifacts.artifacts ?? render_note_content(ev: ev, profiles: profiles, privkey: privkey)
// special case for longform events