William Casarin
ff654c4e11
test: add text attribute testing function
...
This will be used for testing attributed strings
2023-07-17 10:25:09 -07:00
William Casarin
deaf5f042a
search: refactor appendUserTag to make logic more clear
...
ocd mostly
2023-07-17 10:25:09 -07:00
William Casarin
4f56ff3dfb
longform: add padding under words count
...
Changelog-Added: Added padding under word count on longform account
2023-07-17 10:25:09 -07:00
William Casarin
fd59407171
test: fix old markdown tests
2023-07-17 10:25:09 -07:00
William Casarin
9b759247ee
v1.6 (6) changelog
2023-07-16 15:34:40 -07:00
William Casarin
cd7998b69d
v1.6 (6)
2023-07-16 15:33:00 -07:00
William Casarin
bd4c29604f
Fix broken markdown renderer
...
This switches away from the old markdown renderer to the new one at
https://github.com/damus-io/swift-markdown-ui
Changelog-Fixed: Fix broken markdown renderer
2023-07-16 15:27:24 -07:00
William Casarin
bf1175f22c
markdown: add some helpers for counting markdown words
...
Will use this in the new word counter
2023-07-16 15:27:06 -07:00
William Casarin
064888f78d
markdown: use a real-world longform preview
2023-07-16 15:26:31 -07:00
William Casarin
fc640b85ed
add swift-markdown-ui
...
We will be using this lib which is much better than the builtin
framework for markdown rendering. We use a modified version that removes
html tag rendering which looks horrible.
2023-07-16 15:25:09 -07:00
William Casarin
d5766253cf
build: fix unused variable warning
2023-07-16 15:24:06 -07:00
William Casarin
571ed39d52
Fixed issue where hashtags were leaking in DMs
...
Now we never add any tags to DMs, we only add the p tag of the user
you're talking to.
Changelog-Fixed: Fixed issue where hashtags were leaking in DMs
2023-07-16 15:24:06 -07:00
cr0bar
16d81ed40f
Hide nsec when logging in
...
Fix for Hide nsec when logging in & add hide/show toggle
Closes: https://github.com/damus-io/damus/issues/1206
Changelog-Changed: Hide nsec when logging in
2023-07-16 13:05:18 -07:00
William Casarin
1135c19fea
test: add setting property tests
...
Some initial UserSettingsStore property tests
2023-07-16 13:05:18 -07:00
William Casarin
77331644cb
Fix issue with emojis next to hashtags and urls
...
Treat utf8 bytes next to hashtags and urls as boundary conditions
Changelog-Fixed: Fix issue with emojis next to hashtags and urls
2023-07-16 11:46:23 -07:00
William Casarin
8d14fdffb5
content: add utf8 char at url left boundary test
2023-07-16 11:46:23 -07:00
William Casarin
0c95071de7
project: rename parse_mentions to parse_note_content
...
This is more accurate
2023-07-16 11:46:23 -07:00
William Casarin
da78a217a3
docs: clarify the section on using -v2,v3, etc
...
Some patches are still not getting sent with version information. Let's
clarify that in the contribution docs.
Cc: dev@damus.io
2023-07-16 10:05:57 -07:00
William Casarin
f53b824122
docs: patch changelogs when submitting patches
...
This adds a section on creating patch changelogs when submitting
patches. It helps reviewers know what changed between many different
versions of a patch
2023-07-16 09:44:27 -07:00
Bryan Montz
45ab394b09
fixed: relay detail view is not immediately available after adding new relay
...
Changelog-Fixed: relay detail view is not immediately available after adding new relay
Closes: https://github.com/damus-io/damus/issues/1369
Signed-off-by: Bryan Montz <bryanmontz@me.com>
Signed-off-by: William Casarin <jb55@jb55.com>
2023-07-16 07:56:18 -07:00
Bryan Montz
47e7505573
fix typos
...
Signed-off-by: Bryan Montz <bryanmontz@me.com>
Signed-off-by: William Casarin <jb55@jb55.com>
2023-07-16 07:37:55 -07:00
Bryan Montz
0f1390f412
Swift cleanup: remove duplicate or unnecessary initializers using default values
...
Signed-off-by: Bryan Montz <bryanmontz@me.com>
Signed-off-by: William Casarin <jb55@jb55.com>
2023-07-16 07:37:55 -07:00
Bryan Montz
6bf5293701
Swift cleanup: don't capture case values only to ignore them in switch statements
...
Signed-off-by: Bryan Montz <bryanmontz@me.com>
Signed-off-by: William Casarin <jb55@jb55.com>
2023-07-16 07:37:55 -07:00
Bryan Montz
3d6909bf62
Swift cleanup: simplify "Task.init {}" to "Task {}"
...
Signed-off-by: Bryan Montz <bryanmontz@me.com>
Reviewed-by: William Casarin <jb55@jb55.com>
Signed-off-by: William Casarin <jb55@jb55.com>
2023-07-16 07:37:55 -07:00
Bryan Montz
ecd8b64b8b
Swift cleanup: prefer case list over fallthrough in switch statements
...
Signed-off-by: Bryan Montz <bryanmontz@me.com>
Signed-off-by: William Casarin <jb55@jb55.com>
2023-07-16 07:37:55 -07:00
Bryan Montz
0c627ae0a0
Swift cleanup: "init (" -> "init("
...
Signed-off-by: Bryan Montz <bryanmontz@me.com>
Signed-off-by: William Casarin <jb55@jb55.com>
2023-07-16 07:37:55 -07:00
William Casarin
16c86c1d1c
update bad commit mailmap
2023-07-14 22:25:19 -07:00
Daniel D'Aquino' via patches
29140d956b
Add feedback message when user adds a relay already in the list
...
Changelog-Added: Added feedback when user adds a relay that is already on the list
Closes: https://github.com/damus-io/damus/issues/1053
Signed-off-by: Daniel D'Aquino <daniel@daquino.me>
Reviewed-by: William Casarin <jb55@jb55.com>
Signed-off-by: William Casarin <jb55@jb55.com>
2023-07-14 22:11:34 -07:00
William Casarin
7ae7584135
ui: remove nip05 badge on events
...
Changelog-Changed: Remove nip05 on events
2023-07-14 17:31:28 -07:00
William Casarin
139be9eef2
Fix nostr: mention prefix bugs
...
The zero-width space was causing parsing issues. Not sure why we need
this so I just removed it.
Changelog-Fixed: Fix nostr:nostr:... bugs
2023-07-14 17:28:24 -07:00
William Casarin
72a060c7b3
nip05: rename nip05 to Nostr Address in search
...
Forgot this one
2023-07-14 17:05:01 -07:00
William Casarin
9db81fd6b8
views: refactor post_changed in PostView
...
Use some helper functions instead of the full switch
2023-07-14 15:54:17 -07:00
William Casarin
f08efd7e30
nip05: rename nip05 verification to nostr address
...
nip05 identifiers and nip05 verification is too confusing, and also
wrong. Let's use the "nostr address" terminology.
Suggested-by: Derek Ross
Suggested-by: Semisol <hi@semisol.dev>
Changelog-Changed: Rename NIP05 to "nostr address"
2023-07-14 13:26:10 -07:00
William Casarin
fb2a69acd8
project: fix test fixtures
2023-07-14 13:07:52 -07:00
Terry Yiu
8a9e3ea76b
Fix localization issues and export strings for translation
...
Changelog-Fixed: Fix localization issues and export strings for translation
Signed-off-by: Terry Yiu <git@tyiu.xyz>
Signed-off-by: William Casarin <jb55@jb55.com>
2023-07-14 09:34:29 -07:00
William Casarin
4830a6f3b7
Run actions on pushes to the ci branch
2023-07-14 09:34:29 -07:00
William Casarin
9879c78e41
build 5 because I broked something
2023-07-13 15:43:21 -07:00
William Casarin
05e73a3711
actually subscribe to likes. oops
2023-07-13 11:43:52 -07:00
William Casarin
731fdb108b
build: fix a few warnings and errors
2023-07-13 11:17:00 -07:00
William Casarin
2f3737c2b5
v1.6-4 changelog
2023-07-13 11:14:29 -07:00
William Casarin
e36747a81a
v1.6 (4)
2023-07-13 11:13:50 -07:00
William Casarin
505ce0bd39
Add the ability to follow hashtags
...
Changelog-Added: Add the ability to follow hashtags
2023-07-13 11:10:53 -07:00
William Casarin
31fa63debf
home: hide users and hashtags from home timeline when you unfollow
...
Add the ability to resubscribe to home filters so that it will be
updated when you follow and unfollow people
Changelog-Fixed: Hide users and hashtags from home timeline when you unfollow
2023-07-13 11:08:09 -07:00
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