William Casarin
122655bea3
home: separate home filters
...
we will want to resubscribe to these, so pull them out
2023-07-13 11:08:09 -07:00
William Casarin
9a714943fd
contacts: get followed hashtags function
...
todo: cache these
2023-07-13 11:08:09 -07:00
William Casarin
17df2972d9
ui: add follow hashtag ui on search view
2023-07-13 11:08:04 -07:00
William Casarin
bebaffd247
contacts: unify following logic
...
We are about to add hashtag following, so let's prepare handle_follow
for this. Generalize pubkey following to ReferenceId follows in the
handle_{follow,unfollow} functions.
We also split out the notification part into its own function.
2023-07-13 09:32:42 -07:00
William Casarin
0fae54a98d
components: make GradientButtonStyle padding configurable
...
There is too much padding on the follow hashtag button so we need to fix
that
2023-07-13 09:04:55 -07:00
William Casarin
90818c12e8
components: create PinkGradientView and use PinkGradient directly
...
Still need to do this for the other gradients as well but this is fine
for now.
2023-07-13 09:04:55 -07:00
William Casarin
1136808afa
contacts: generalize following to allow any reference
...
I noticed we are not using the PostBox when following new users. Not
good! This is probably why following users sometimes does not work.
Changelog-Fixed: Fixed a bug where following a user might not work due to poor connectivity
2023-07-13 09:04:55 -07:00
William Casarin
b7d139ffb3
refid: add .t helper
...
This is used for quickly creating hashtag refs
2023-07-13 09:04:55 -07:00
William Casarin
7fc270725f
test: add newline mention test
...
This is currently passing but it shouldn't be. This is because we are
not testing the build_post function directly. We will do this soon.
2023-07-13 07:32:27 -07:00
William Casarin
7b73a54de5
test: switch to test data file
...
We only added the file before, let's actually use it now
2023-07-13 07:32:27 -07:00
Bryan Montz
fdaf785869
fixed: icon color for developer mode setting is incorrect in low-light mode
...
Changelog-Fixed: icon color for developer mode setting is incorrect in low-light mode
Signed-off-by: Bryan Montz <bryanmontz@me.com>
Signed-off-by: William Casarin <jb55@jb55.com>
2023-07-13 07:24:44 -07:00
William Casarin
c0f9b0a8c0
views: allow embeddable views at top of timeline
...
This allows you to put stuff at the top of a timeline inside the scroll
view. We could also remove the scrollview from the timeline
eventually... but this works for now.
2023-07-13 06:56:23 -07:00
William Casarin
7123b225a1
search: make model an ObjservedObject
...
This should not be a state object because the data is passed in
elsewhere
2023-07-13 06:56:23 -07:00
William Casarin
b6f25a85f8
Fix nip05 badge icon
2023-07-13 06:56:23 -07:00
William Casarin
7046fe0d4f
ui: add DamusBackground helper
...
We will be using this in more places
2023-07-13 06:56:23 -07:00
William Casarin
201e9a427f
post: extract build_post from post view
...
I need to test this function because there is a bug with nostr: mentions
2023-07-13 06:56:23 -07:00
William Casarin
6481f96488
add bech32_pubkey_decode
...
I need this for a test
2023-07-13 06:56:23 -07:00
William Casarin
3845d32074
test: add test data file
...
We can organize test data in here
2023-07-13 06:56:23 -07:00
William Casarin
c1c33518ea
don't follow jb55 by default
...
This was funny initially but it confuses people.
Changelog-Removed: Remove following Damus Will by default
2023-07-12 14:42:23 -07:00
William Casarin
f2cf30a728
Scroll to top for longform events only
...
Fixes: ad6a1962
("Scroll to top of event instead of bottom")
2023-07-12 08:23:53 -07:00
William Casarin
69922b1d77
Remove LoadMoreButton
...
Was an old unused thing
2023-07-12 08:21:44 -07:00
William Casarin
7343fcd399
Allow longform content to be long
...
Changelog-Changed: Remove note size restriction for longform events
2023-07-12 05:38:48 -07:00
ericholguin
5571052cfd
Update nav to use adaptable color for dark and light modes
...
Changelog-Fixed: Fixed nav bar color on login, eula, and account creation
Closes: https://github.com/damus-io/damus/pull/1361
2023-07-12 05:38:10 -07:00
William Casarin
de63e96664
v1.6-3 changelog
...
A few longform fixes
2023-07-11 12:59:09 -07:00
William Casarin
7f9371d85f
v1.6 (3)
2023-07-11 12:58:15 -07:00
William Casarin
de4e8e5748
Only show longform preview in notifications
...
Changelog-Fixed: Show longform previews in notifications instead of the entire post
2023-07-11 12:56:30 -07:00
William Casarin
ad6a1962bb
Scroll to top of event instead of bottom
...
This is pretty important for longform events
Changelog-Changed: Start at top when reading longform events
2023-07-11 12:55:54 -07:00
William Casarin
828e417726
Allow reposting and quote reposting multiple times
...
Changelog-Changed: Allow reposting and quote reposting multiple times
2023-07-11 12:28:38 -07:00
William Casarin
d2374aa6ec
I broked dms. i fixed.
2023-07-11 12:28:38 -07:00
William Casarin
495859e07f
Fix various padding issues related to longform posts
...
1. Make a proper threaded EventShell variant
2. Fix padding everywhere
Changelog-Fixed: Fix padding on longform events
2023-07-11 12:17:59 -07:00
William Casarin
d96ea593a5
search: allow searching longform articles by hashtag
2023-07-11 12:17:22 -07:00
William Casarin
7514a741c0
docs: make note to replace old bech32 parser
2023-07-11 12:17:09 -07:00
William Casarin
dc7b0004bc
Hide action bar in longform quote reposts
...
Changelog-Fixed: Fix action bar appearing on quoted longform previews
2023-07-11 10:26:29 -07:00
William Casarin
8e33d5f6b9
v1.6-2 changelog
2023-07-11 09:22:39 -07:00
William Casarin
db2ec0a00a
Fix npub mention bugs, fix slowness when parsing large posts
...
Switch the post parser to use the same code as the content parser. This
was causing many issues, including performance issues.
Changelog-Fixed: Fix lag when creating large posts
Changelog-Fixed: Fix npub mentions failing to parse in some cases
Changelog-Added: Add r tag when mentioning a url
Changelog-Removed: Remove old @ and & hex key mentions
2023-07-11 09:15:13 -07:00
cr0bar
dc21b6139c
Add support for multilingual hashtags
...
Changelog-Added: Add support for multilingual hashtags
Reviewed-by: William Casarin <jb55@jb55.com>
Closes: https://github.com/damus-io/damus/issues/949
2023-07-11 07:22:44 -07:00
William Casarin
031c7823ae
refactor: move hashtag tests to their own file
2023-07-11 07:21:16 -07:00
cr0bar
ac2b5b26bb
Added non-latin test and amended emoji test to include emoji in hashtag
2023-07-11 06:39:12 -07:00
cr0bar
c1220f50af
Handle percent encoding of colon for some hashtags
2023-07-11 06:39:12 -07:00
cr0bar
2353f97114
Change to is_hashtag_chat to support non-latin characters
2023-07-11 06:39:12 -07:00
cr0bar
e83e110adb
Fix to is_boundary to support non-latin characters
2023-07-11 06:39:12 -07:00
William Casarin
aae97c5cb7
git: add .mailmap file
...
This ensures that author emails are correct when using various git tools
2023-07-11 06:39:05 -07:00
William Casarin
45d9121ed7
fix project issues
2023-07-10 20:56:52 -07:00
Terry Yiu
4c774f2dda
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>
2023-07-10 20:16:18 -07:00
Terry Yiu
b8ec3493dc
Fix freezing bug when tapping Developer settings menu
...
Changelog-Fixed: Fix freezing bug when tapping Developer settings menu
Signed-off-by: Terry Yiu <git@tyiu.xyz>
Reviewed-by: William Casarin <jb55@jb55.com>
2023-07-10 20:16:18 -07:00
William Casarin
e299389866
Add initial longform note support
...
Changelog-Added: Add initial longform note support
2023-07-10 18:29:18 -07:00
William Casarin
374610a21a
artifacts: allow unseparated note artifacts
...
This is needed for longform events. Right now we treat unseparated note
artifacts as a list of blocks, but we will likely need to render these
blocks into lists of attributed texts with image blocks inbetween.
2023-07-10 18:24:43 -07:00
William Casarin
4d995fd04c
Longform Notes
2023-07-10 17:39:13 -07:00
William Casarin
518886912c
refactor: carve out TextEvent body into EventShell
...
We'll need this for other event types
2023-07-10 17:39:13 -07:00
William Casarin
ab5eea330a
options: add no_mentions to event view options
...
We don't need mentions in longform previews so we'll need this
2023-07-10 17:39:13 -07:00