Adrian Perez de Castro
f17e2ac2d0
Makefile: Improve usage of curl, replace wget usage
...
Instead of redirecting stdout to a file, use "-o" to specify the output
file; also use curl instead of wget for downloading Twemoji, which avoids
needing them both installed (one should be enough) and pipe the output
from the download directly to tar for unpacking.
2020-08-15 23:46:20 +03:00
Thomas Sileo
a775e272e1
Merge pull request #85 from fabrixxm/eggs
...
add egg name in requirements.txt
2020-07-01 09:31:28 +02:00
Thomas Sileo
8b5c2e74d9
Merge pull request #84 from fabrixxm/me
...
Add favicon, "alsoKnownAs" support, show all options in me.sample.yml
2020-07-01 09:30:51 +02:00
Fabio
efb97d5fe7
add egg name in requirements.txt
2020-06-30 11:48:33 +02:00
Fabio
7ec61e9b7f
add support to "alsoKnownAs" property
...
add "aliases" config option in me.yml
2020-06-30 11:35:03 +02:00
Fabio
32964a413b
Add favicon, configurable in me.yml, with default
2020-06-30 11:35:03 +02:00
Fabio
c9bc5e29af
document all possible values in me.sample.yml
2020-06-30 11:35:03 +02:00
Thomas Sileo
8903a1f56a
Merge pull request #82 from hiromi-mi/make_session_cookie_secure
...
Set Secure Flag On Cookie When Served As HTTPS
2020-06-12 09:02:11 +02:00
hiromi-mi
0c9fb36c91
Set Secure Flag On Cookie When Served As HTTPS
...
See also: https://flask.palletsprojects.com/en/1.1.x/security/#set-cookie-options
2020-06-07 20:12:13 +09:00
Thomas Sileo
8df0ddb03a
Merge pull request #81 from hiromi-mi/fix_csrf_authorize_follow
...
Add CSRF Protection in POST /authorize_follow
2020-06-04 08:08:16 +02:00
Thomas Sileo
f5f8e0cfeb
Merge pull request #80 from hiromi-mi/cache_actor_icon
...
push `/task/cache_actor_icon` at `Tasks.cache_actor_icon()`
2020-06-04 08:01:40 +02:00
hiromi-mi
a34905dfda
Check CSRF Token at POST /authorize_follow
2020-06-04 14:43:52 +09:00
hiromi-mi
0fa21ea0f0
push /task/cache_actor_icon at cache_actor_icon()
...
Microblog.pub sometimes writes error log as follows:
```
[ERROR] cache not available for (Icon's Path)/50/Kind.ACTOR_ICON
```
(Maybe) for the sake of caching actor's icon, `_cache_actor_icon()`
in `core/activitypub.py` runs `Tasks.cache_actor_icon()`.
However, `cache_actor_icon()` in `core/tasks.py` does not run
`/tasks/cache_actor_icon`.
2020-05-30 02:28:39 +09:00
Thomas Sileo
4c5d798ed4
Merge pull request #79 from hiromi-mi/support_private_question
...
Support Posting Unlisted/Followers-only Question
2020-05-27 14:02:55 +02:00
hiromi-mi
c5f3729636
Support Posting Unlisted/Followers-only Question
...
Though I chose Unlisted or Followers-only when posting question, the question are sent to public.
This is probably because api_new_question() in blueprints/api.py does not look up visibility api argument.
Tihs patch fixes by adding visibility argument check at api_new_question().
2020-05-27 19:46:44 +09:00
Thomas Sileo
ed12d8fa01
Merge pull request #75 from fabrixxm/fix/73
...
Fix uploading attachments
2020-03-27 12:26:44 +01:00
Fabio
f6c1d72199
Fix uploading attachments
...
this should fix #72
2020-03-27 11:43:24 +01:00
Thomas Sileo
3cf5150af8
Merge pull request #72 from hiromi-mi/fix_local_actor_cache
...
Create config/local_actor_hash if not exists
2020-02-27 21:48:58 +01:00
hiromi-mi
ba95d6bdf9
Create config/local_actor_hash if not exists
...
After I change my profile in `config/me.yml` and start microblog.pub
again, remote instances is not sometimes be updated the profile.
This is probably because `config/local_actor_hash` is not created, and
`is_actor_updated()` always returns `False`.
2020-02-28 01:17:54 +09:00
Thomas Sileo
fa9edb8fda
Remove hard-coded email address from the feed. Fix #62
...
The email address is optional and I don't think adding it is worth
the complexity.
2020-02-02 12:38:16 +01:00
Thomas Sileo
8f0e167e43
Fix formatting
2020-01-26 12:37:24 +01:00
Thomas Sileo
f2f541c15c
Bootstrap EmojiReaction support
2020-01-26 12:35:03 +01:00
Thomas Sileo
c0c1a55eeb
Re enable Mypy in CI
2020-01-26 12:34:44 +01:00
Thomas Sileo
0ae0310f5f
Tweak the README
2020-01-22 21:00:14 +01:00
Thomas Sileo
00810e61a4
Blacken files
2020-01-22 20:42:42 +01:00
Thomas Sileo
8c10cce409
Merge pull request #69 from fabrixxm/wip
...
Cleanup from @fabrixxm
2020-01-22 08:27:13 +01:00
Fabio
12940c2846
Document env vars
2020-01-10 14:13:04 +01:00
Fabio
173eb15af0
add run_dev script
2020-01-10 14:13:04 +01:00
Fabio
1ab60e399e
mime type in Link
s is set in mediaType
property
2020-01-10 14:13:04 +01:00
Fabio
a327f1f5d7
url_or_id
template filter don't return not str url
2020-01-10 14:13:04 +01:00
Fabio
1f2a8f6da7
add get_text
template filter
...
returns object's `content` or `name`, the first is set, or an empty
string.
some objects don't have `content`, don't let templates rely on it
2020-01-10 14:13:04 +01:00
Fabio
a71bf46af5
Don't overwrite objects 'url' property
2020-01-10 14:13:04 +01:00
Fabio
ef73b044f2
use yaml.safe_load()
...
`yaml.load()` is deprecated and insecure
2020-01-10 14:13:04 +01:00
Jonathan Jenne
657ab68355
check for latitude and longitude before accessing them ( #68 )
2019-12-22 17:53:28 +01:00
Thomas Sileo
3c4b9e7379
Move the Place activity to the location field (instead of a tag)
2019-11-06 22:40:51 +01:00
Thomas Sileo
9c12a67311
Tweak CSS for DMs admin section
2019-11-03 11:16:52 +01:00
Thomas Sileo
b1832bcec0
Fix/improve redirection in the UI
2019-11-03 10:29:32 +01:00
Thomas Sileo
3048de04e8
Fix the display sensitive button
2019-11-03 10:21:11 +01:00
Thomas Sileo
be0f5c04b2
Dedup inline attachments (when already inlined)
2019-11-03 09:59:04 +01:00
Thomas Sileo
08cdcd6b50
Fix unicode emojis display
2019-11-02 09:52:04 +01:00
Thomas Sileo
1227dd5236
Tweak the template filter for inline imgs
2019-11-01 16:19:59 +01:00
Thomas Sileo
6a40e7d7f2
Add support for inline images
2019-11-01 16:05:48 +01:00
Thomas Sileo
00b43fa935
still cache actor for note with buggy links
2019-11-01 12:45:36 +01:00
Thomas Sileo
6db28ac94d
Fix tasks retry
2019-11-01 12:39:08 +01:00
Thomas Sileo
f6ddb47fdf
Fix the fetch remote question task for delete ones
2019-11-01 12:33:40 +01:00
Thomas Sileo
99bf6a4a01
Fix for HubZilla actor caching
2019-11-01 12:15:42 +01:00
Thomas Sileo
7c4e6732c9
Tweak/fix the list template in the admin UI
2019-10-28 22:38:29 +01:00
Thomas Sileo
e611d61739
Add "location" support (embed a tag with a Place object)
2019-10-27 19:05:42 +01:00
Thomas Sileo
cf983ca9f3
Fix admin profile page
2019-10-27 15:06:50 +01:00
Thomas Sileo
42e66b2189
Fix lookup page
2019-10-27 15:06:12 +01:00