954a02126e
format_links: parse punctuation inside brackets
...
Also, consolidate all punctuation tests into a single table-driven one.
2023-11-03 19:38:24 -03:00
7d13cbb10b
Add failing tests for reported bugs in format_links()
2023-11-03 19:38:23 -03:00
294788aa1a
format_links: refactor; support multiple punctuation
2023-11-03 19:38:23 -03:00
737ac8e908
Implement PartialDateField using SealedDate and a custom descriptor
2023-10-24 17:30:15 -03:00
52a979da2d
Add failing test case for "January 1st" offset bug
2023-10-24 04:32:27 -03:00
8477d0b89d
Merge branch 'main' into user-migration
2023-10-22 18:47:41 +11:00
fd1ebf5f71
formatting and pylint fixes
2023-10-22 16:52:29 +11:00
8afcb9b6d3
Fix tests warning: ImportJob.updated_date received a naive datetime
2023-10-15 22:03:45 -03:00
a4bfcb34d5
fix tests and clean up
...
* cleans up some test logging
* cleans up some commented-out code
* adds export_job model tests
* reconsiders some tests in export user view tests
2023-10-15 15:09:19 +11:00
17d741039c
Remove duplicate test
...
(Test case already part of test_format_links_simple_url.)
2023-10-09 21:37:39 -03:00
c3c22022f6
Check for punctuation before checking for wrapping parenthesis
...
This allows to parse `(URL).` correctly, which was not detected
as URL before.
2023-10-09 21:09:51 -03:00
e4ba09178f
Merge pull request #2949 from bookwyrm-social/user-search
...
Allow searching for local users when logged out
2023-10-02 10:21:08 -07:00
b3bfcf8665
Updates test for new logic
2023-10-02 10:02:42 -07:00
fe4bc28f37
fix tests
2023-09-24 15:58:52 +10:00
688978369f
Implement self-contained archives to import and export entire users between instances ( #38 )
...
Co-authored-by: Daniel Burgess <developerdannymate@gmail.com>
Co-authored-by: Hugh Rundle <hugh@hughrundle.net>
Co-authored-by: dannymate <dannymate@noreply.codeberg.org>
Co-authored-by: hughrun <hughrun@noreply.codeberg.org>
Reviewed-on: https://codeberg.org/GuildAlpha/bookwyrm/pulls/38
Co-authored-by: CSDUMMI <csdummi.misquality@simplelogin.co>
Co-committed-by: CSDUMMI <csdummi.misquality@simplelogin.co>
2023-09-07 22:37:28 +02:00
a166af9990
Merge branch 'main' into report-actions
2023-08-06 16:00:59 -07:00
211b60bba2
Merge pull request #2934 from bookwyrm-social/reduce-status-tasks
...
Only trigger add_status_task when status is first created
2023-08-01 08:30:43 -07:00
3336fd0f11
Updates test
2023-07-31 17:48:09 -07:00
Joachim
e37ed8ea5e
Remove links trailing punctuation
2023-07-31 22:12:37 +02:00
c4d72829e9
Merge pull request #2879 from bookwyrm-social/reactivation-bug
...
Don't allow invalid account reactivation
2023-07-20 19:07:18 -07:00
aae1d10eea
Don't show remote profiles to unauthenticated users
2023-07-20 20:29:08 -04:00
d56b9f14a2
Handles changing user perms from report
2023-07-16 06:36:32 -07:00
a7e6919b96
Fixes confirm email slow and adds test
2023-07-16 05:55:38 -07:00
affaf3d0ba
Fixes tests and incorrect class method reference
2023-05-22 06:39:23 -07:00
Josh Soref
7a6e249614
spelling: sensitivity
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
44b4b10eb8
spelling: password
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
d640bc9b1c
spelling: nonexistent
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
0b30373bd3
spelling: mention'd
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
3b9828c0fc
spelling: existing
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
3850183e95
spelling: doesn't
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
f1640399e3
Python formatting
2023-03-29 10:13:44 -07:00
4fcb01805e
Fixes test comparison string
2023-03-29 09:14:30 -07:00
8a0e88db83
Adds test for links with # symbols
2023-03-29 08:39:41 -07:00
42dd199084
Unit test that identifies clashes between links and mentions
2023-03-29 08:28:45 -07:00
0cebc4388c
Adds unit tests for referer helper
2023-03-20 12:47:21 -07:00
12af5992a3
Merge pull request #2524 from chdorner/feature/tag-support
...
Initial hashtag support
2023-03-12 16:37:39 -07:00
50a81bdfdd
Change CSV export to buffer instead of streaming
...
The idea behind a streaming CSV export was to reduce the amount of
memory used, by avoiding building the entire CSV file in memory before
sending it to the client. However, it didn't work out this way in
practice: the query objects that were created to represent each line
caused Postgres to generate a very large (~200MB on bookwyrm.social)
temp file, not to mention the memory being used by the Query object
likely being similar to, if not larger than that used by the finalized
CSV row.
While we should in the long term run our CSV exports as a Celery task,
this change should allow CSV exports to work on large servers without
causing disk-space problems.
Fixes : #2157
2023-03-08 21:37:56 -05:00
Christof Dorner
9ca9883e0b
Enable finding existing hashtags case-insensitive
...
We should store hashtags case-sensitive, but ensures that an existing
hashtag with different case are found and re-used. for example,
an existing #BookWyrm hashtag will be found and used even if the
status content is using #bookwyrm.
2023-03-07 13:16:45 +01:00
Christof Dorner
f3334b1550
Render hashtag links with data-mention="hashtag" attribute
2023-03-07 13:16:45 +01:00
Christof Dorner
499aace9fb
Add basic view listing activities from a given hashtag
2023-03-07 12:59:32 +01:00
Christof Dorner
ba0fcccfc5
Link hashtags in status content
2023-03-07 12:55:36 +01:00
Christof Dorner
c68304a99b
Parse hashtags and store them in CreateStatus view
2023-03-07 12:55:36 +01:00
3a67727a9a
Merge pull request #2638 from Giebisch/page-range
...
Page Range
2023-02-27 17:39:42 +11:00
0a07607240
Improves discover page test so it catches errors
...
Without `select_subclasses` in the mock, it wasn't actually collecting
any statuses to display, so errors on that view weren't caught in this
test.
2023-02-22 08:43:13 -08:00
Giebisch
21575fbf3f
Unused variable fix
2023-02-06 14:09:53 +01:00
Giebisch
f65e0b7632
Add Quotation endposition test
2023-02-06 14:00:04 +01:00
8a65296c29
Merge pull request #2618 from hughrun/tests
...
use mocks for isni API calls
2023-01-26 06:06:05 -08:00
4b6678903f
Merge pull request #2617 from bookwyrm-social/follow-priority
...
Make follow activities a high priority
2023-01-26 06:03:57 -08:00
1fe6892d0a
pylint
2023-01-26 16:54:14 +11:00
aa6eaccfbb
use mocks for isni API calls
...
- fixes a couple of tests making author ISNI calls
- notes a future TODO to remove some possibly useless code
2023-01-26 16:22:50 +11:00