bu5hm4nn
477ac8b5bc
Accept only 'e' tags marked as "mention" to comply with NIP-10
2023-03-18 18:00:42 -06:00
Mike Dilger
b5d6786ec1
A known issue added to README
2023-03-19 11:57:53 +13:00
Adam B
f8a769e79c
DTag entry: separate display and new tag entry
2023-03-18 23:32:48 +01:00
Adam B
f933ab8289
Remove delegation tag too when Identity is removed
2023-03-18 23:02:25 +01:00
bu5hm4nn
63c291f55a
Merge branch 'master' into refactor-note-rendering
2023-03-18 14:44:57 -06:00
bu5hm4nn
5533b4a4ed
Add theme option to style repost stroke
2023-03-16 15:59:04 -06:00
bu5hm4nn
2854c36b12
Fix vertical alignment for header following username (REPOST, etc)
2023-03-16 15:58:16 -06:00
bu5hm4nn
c635cb129a
Give themes control over repost separator spacing
2023-03-15 22:27:24 -06:00
bu5hm4nn
0bb6cc9d2d
Always trim whitespace around notes
2023-03-15 22:27:00 -06:00
Mike Dilger
528169aa75
Update nostr-types
2023-03-16 16:59:41 +13:00
Mike Dilger
d0d6b39ff9
Fix of commits ago (more fixes coming)
2023-03-16 16:51:39 +13:00
Mike Dilger
214f888c85
Don't print 'normalizing urls' unless actually doing it
2023-03-16 16:44:53 +13:00
Mike Dilger
6894524df2
Relationship::Root treated like Relationship::Reply
2023-03-16 15:31:59 +13:00
Mike Dilger
7203efb02e
Fix wrong use of .mentions()
2023-03-16 15:28:35 +13:00
Mike Dilger
22a1ac0b56
Update nostr-types
2023-03-16 15:26:45 +13:00
bu5hm4nn
2c763c6146
Fix whitespace and classic theme, addresses #305
2023-03-15 17:51:44 -06:00
Mike Dilger
52c6920b84
Merge branch 'revert-r2d2', here is why:
...
Reason #1 : Multiple connections, all of which can write, precipitates two writers which
invariably causes one of the writers to fail (not just wait). There is no
easy way to tell it to wait for the lock, it just fails with an error that the
database is locked. This might be fixable if we had a pool for readers and
a single connection for the writer with only one thread at a time to write.
But it wasn't the only problem with this code.
Reason #2 : The spawn_blocking() blocks were removed. These blocks allowed Tokio tasks to
remain occupied. Without them, tokio tasks were waiting for the database to
return with an answer, meaning precious CPU cores were sitting idle doing
nothing. Neither r2d2 nor rusqlite are async, and these spawn_blocking blocks
should have remained in place even if we were able to go with r2d2.
Overall, it's possible to return to r2d2, but more carefully next time.
2023-03-15 20:23:20 +13:00
Mike Dilger
d27ab3a75d
Revert "Use r2d2 for SQL connection pooling"
...
This reverts commit 89ea16dfe8
.
2023-03-15 20:22:53 +13:00
Mike Dilger
c504115cca
Revert "Remove most spawn_blocking blocks"
...
This reverts commit d2207a9e3c
.
2023-03-15 20:20:29 +13:00
Mike Dilger
ebf687383c
Revert "Remove remaining spawn_blocking blocks"
...
This reverts commit fab47d39e6
.
2023-03-15 20:18:46 +13:00
Mike Dilger
364a9fddd2
Revert "Strip out a lot of commented code (we can restore it from git if we need it eventually)"
...
This reverts commit de4402d9df
.
2023-03-15 20:18:37 +13:00
Mike Dilger
45d28de826
Revert "No need to clone the Arc"
...
This reverts commit 34e25d3772
.
2023-03-15 20:18:08 +13:00
Mike Dilger
49dbf2d489
Revert "Attempt to solve DB locking problem"
...
This reverts commit ae28246c3d
.
2023-03-15 20:17:43 +13:00
Mike Dilger
30f9993513
Revert "Set versions for r2d2 and r2d2-sqlite"
...
This reverts commit bf9486a19a
.
2023-03-15 20:17:31 +13:00
bu5hm4nn
c0fa261007
Correctly indent comments that come before reposts,
...
refactor to render all reposts in the same code line (yay!)
2023-03-14 20:08:14 -06:00
bu5hm4nn
4dc0181a83
Fix: Kind 6 Mention (kind 6 repost without JSON payload) && cargo fmt
2023-03-14 17:42:53 -06:00
bu5hm4nn
c6cdc0437f
Add support for rendering reposts of inline mentions if the mention is last tag in the content
2023-03-14 17:26:57 -06:00
bu5hm4nn
6b35765476
Trim off whitespace when there is only one mention and no other text
2023-03-14 15:30:46 -06:00
Bu5hm4nn
f292c1f3e8
Change which buttons are shown. Now show only the innermost repost buttons.
2023-03-14 13:42:58 -06:00
Bu5hm4nn
43b072d764
fix detection of MentionOnly
2023-03-14 13:27:53 -06:00
Bu5hm4nn
ff83508a7f
Improve repost type detection, case CommentMention is not yet handled (will throw warning)
2023-03-14 13:13:13 -06:00
Bu5hm4nn
27aee36a05
Implement new style for mentions, implements #305
2023-03-13 22:21:11 -06:00
Bu5hm4nn
b1ad1f3ef5
Use Event::mentions()
to determine if we have mentions
2023-03-13 19:39:17 -06:00
Bu5hm4nn
e6068c87ac
Fix adding newline before repost mention
2023-03-13 19:05:44 -06:00
Bu5hm4nn
a45669a247
Move more common fields to NoteData::new() so they get used for constructing reposts
2023-03-13 18:40:45 -06:00
Bu5hm4nn
90423d9a6a
Move common fields to NoteData::new() so they get used for constructing reposts
2023-03-13 18:06:08 -06:00
Mike Dilger
a9fca5c2ce
README update on other languages
2023-03-14 12:51:24 +13:00
Bu5hm4nn
50f1034f5a
Optimize avatar size determination
2023-03-13 17:36:31 -06:00
Bu5hm4nn
715420ff9e
Rename as_reply_to
into hide_footer
as that was the only effect of that variable
2023-03-13 17:18:44 -06:00
Bu5hm4nn
2fee804543
Let note module own the info on how to render a note which is used by themes
2023-03-13 16:50:35 -06:00
Mike Dilger
e9aaabc416
Fix: for DMs not showing under Direct Replies Only
2023-03-14 10:49:06 +13:00
Mike Dilger
27d825057b
Change Schema31 so it is less likely to fail
2023-03-14 09:02:16 +13:00
Mike Dilger
9eb7221289
Merge remote-tracking branch 'dtonon/features/from_image_url_to_placeholder'
2023-03-12 15:40:10 +13:00
Mike Dilger
62746559e4
Merge remote-tracking branch 'bushmann/show-first-mention'
2023-03-12 14:08:03 +13:00
Daniele Tonon
6cd6a66b9b
Show a image / video placeholders instead of full urls
2023-03-12 01:44:53 +01:00
Mike Dilger
7bd82dcfb7
More packaging note updates
2023-03-12 13:29:20 +13:00
Bu5hm4nn
3b14869e36
Break line before reposting mention
2023-03-11 18:01:04 -06:00
Mike Dilger
dcdcdc6160
0.6.0-unstable
2023-03-12 12:57:15 +13:00
Mike Dilger
5baead900b
cargo fmt
2023-03-12 12:44:45 +13:00
Mike Dilger
bf9486a19a
Set versions for r2d2 and r2d2-sqlite
2023-03-12 12:42:47 +13:00