Mike Dilger
f5c2384d55
Make settings easier for me to understand
2023-04-08 10:37:55 +12:00
Mike Dilger
3fb7713968
cargo fmt
2023-04-08 06:37:01 +12:00
Mike Dilger
65f50e3266
Hover text for image buttons
2023-04-08 06:36:01 +12:00
Mike Dilger
f0f87b4de4
Show Media setting to default to true
2023-04-08 06:35:35 +12:00
Mike Dilger
0112d821ba
Stats page
2023-04-08 06:16:57 +12:00
Mike Dilger
3ea2445548
Improve timeouts in fetcher
2023-04-08 05:26:05 +12:00
Mike Dilger
a63a365a7d
cargo clippy & fmt
2023-04-07 13:01:03 +12:00
Mike Dilger
7561dc2c1c
Merge remote-tracking branch 'remotes/bushmann/image-loading-on-unstable'
2023-04-07 12:55:40 +12:00
Mike Dilger
1d09e35737
Cache-invalidate all posts by a given author when toggling mute
2023-04-07 12:48:01 +12:00
Nethanja Focking
0473622b43
Merge branch 'unstable' into implement-image-loading-rebased
...
# Conflicts:
# src/ui/feed/note/content.rs
# src/ui/feed/note/mod.rs
2023-04-06 18:28:23 -06:00
Nethanja Focking
0e168e1751
cargo fmt + clippy
2023-04-06 17:38:47 -06:00
Mike Dilger
db460338bc
NoteData: switch to HashMap:
...
DashMap is faster in a multithread situation by providing fine-grain locks.
But the UI is run in a single thread. The locking overhead buys us nothing.
2023-04-07 11:16:43 +12:00
Nethanja Focking
7c0180bc0b
Refine context menu and increase image menu button spacing
2023-04-06 17:00:14 -06:00
Nethanja Focking
25dbdb7289
Click to full-width, menu to the right of images
2023-04-06 16:27:47 -06:00
Nethanja Focking
3a765c11d2
Remove SVG again, but leave comment on how to load
2023-04-06 16:27:21 -06:00
Mike Dilger
3236f41987
Fixes for posts by muted authors breaking threads
2023-04-07 10:25:07 +12:00
Nethanja Focking
0abd873073
Updated UX on image placement
2023-04-06 15:18:11 -06:00
Mike Dilger
43307102e3
Merge branch 'master' into unstable
2023-04-07 09:17:03 +12:00
Mike Dilger
67a12de714
Respect mainfeed_include_nonroot in 3 places that forced it
2023-04-07 09:16:41 +12:00
Nethanja Focking
00226654d2
Always add a newline above a repost if there is already text on the current line
2023-04-06 08:23:11 -06:00
Nethanja Focking
9ac3d7803c
Prepare function drop_uncached_events()
to sync NoteData cache with GLOBALS.events cache
2023-04-06 08:09:03 -06:00
Nethanja Focking
0f544f28fa
Fix uncached mentioned events resulting in empty repost
...
since the event cache is already queries in render_content() it's a bug to exclude uncached mentions since notedata is now cached
2023-04-06 07:46:21 -06:00
bu5hm4nn
ec7b7088e3
Add option "Render images inline" to show images by default. Clicking an image will collapse it and show a link.
...
When Render images inline is false, click an image link will show the image.
Link and image have a context menu to open in browser and copy the URL.
2023-04-06 13:34:13 +12:00
bu5hm4nn
93bf9edaef
Make sure images are on their own row
2023-04-06 13:31:00 +12:00
bu5hm4nn
9a94e494a9
Load images but ignore videos for now
...
- images are max as wide as the content width and max as high as 1/4 of viewport height (we could let the user choose this later)
- in this commit there is one global setting to enable/disable media loading
- frame with small rounded edges gives illusion of image rounding but they are actually not
2023-04-06 13:30:57 +12:00
Mike Dilger
e1920e84a9
cargo fmt
2023-04-06 12:45:26 +12:00
bu5hm4nn
948ab7547a
Make cache work with Rc<RefCell<NoteData>>
2023-04-06 12:45:26 +12:00
bu5hm4nn
7223592179
Render all mentions in-place when the setting is enabled. Add structure for NoteData caching.
2023-04-06 11:59:54 +12:00
Mike Dilger
0ecce31ffa
Events::contains_key()
2023-04-06 11:48:35 +12:00
bu5hm4nn
312b093497
Move NoteData to notedata.rs and create stub for note manager
2023-04-06 11:48:35 +12:00
bu5hm4nn
fc45378e4e
Comment out broken tests in src/tags.rs
2023-04-06 11:42:30 +12:00
Mike Dilger
2e50ef18a3
Shatter content early:
...
Original by bu5hm4nn at cd8dda931c
Shatter content early on in NoteData::new() so that repost detection can now rely on it. Also formally implement kind:6 with no content as defined in NIP-18.
2023-04-06 11:42:30 +12:00
bu5hm4nn
1e8f8552c8
Support kind:6 with a single unmarked 'e' tag as defined in NIP-18
2023-04-06 11:42:30 +12:00
Mike Dilger
5f854eb650
Shatter: ContentSegments to use offsets instead of &str references
2023-04-06 11:42:30 +12:00
Mike Dilger
41efc3221a
Repost
2023-04-06 10:28:33 +12:00
Mike Dilger
667b983e37
Clean up display name code in UI
2023-04-06 10:03:45 +12:00
Mike Dilger
516527281b
Improve quote: insert an nevent1 with relays from event_seen (isntead of a note1 without relays)
2023-04-06 08:50:50 +12:00
Mike Dilger
83d5f7c910
Better handling of broken bech32.
...
Fixes #340
2023-04-06 08:49:21 +12:00
Mike Dilger
6321c6f65f
update README with delete support
2023-04-02 16:56:17 +12:00
Mike Dilger
2cc1a8f963
Deletion support
2023-04-02 16:54:22 +12:00
Mike Dilger
ae5e0a4939
Cargo clippy & cargo fmt
2023-04-02 16:53:29 +12:00
Mike Dilger
b742c23744
Do not render 'reply' and 'quote' buttons when you cannot post
2023-04-02 16:53:29 +12:00
Mike Dilger
abbd682a36
Include current git hash in unstable version numbers
2023-04-02 16:53:29 +12:00
Mike Dilger
4de2a8dc93
If we encounter an 'nevent', and we don't have it, fetch it.
2023-04-01 12:30:00 +13:00
Mike Dilger
60ada3203d
Fix indexing bugs that might be in the midst of a unicode character
2023-04-01 09:49:02 +13:00
Mike Dilger
b2df05424f
update nostr-types (fix deeper unicode indexing issue)
2023-04-01 09:46:05 +13:00
Mike Dilger
34dd06d826
Merge branch 'unstable'
2023-03-31 18:28:54 +13:00
Mike Dilger
400626ab96
Focus compose area on quote/reply; Send compose area on CTRL-Return or CMD-Return
2023-03-31 18:08:46 +13:00
Mike Dilger
527f9741a5
hardcode zap receipts off and do not show in settings up
2023-03-31 18:07:38 +13:00
Mike Dilger
0708a92b94
Focus compose area on quote/reply; Send compose area on CTRL-Return or CMD-Return
2023-03-31 18:06:22 +13:00