Other fixes

This commit is contained in:
Yusur 2019-10-14 21:24:41 +02:00
parent 9dfead5e9c
commit 309009d3a4
2 changed files with 5 additions and 0 deletions

View file

@ -6,6 +6,7 @@
* Added flask-login dependency. Now, user logins can be persistent up to 365 days. * Added flask-login dependency. Now, user logins can be persistent up to 365 days.
* Rewritten `enrich` filter, correcting a serious security flaw. The new filter uses a tokenizer and escapes all non-markup text. Plus, now the `+` of the mention is visible, but weakened; newlines are now visible in the message. * Rewritten `enrich` filter, correcting a serious security flaw. The new filter uses a tokenizer and escapes all non-markup text. Plus, now the `+` of the mention is visible, but weakened; newlines are now visible in the message.
* Now you can edit or change privacy to messages after they are published. After a message it's edited, the date and time of the message is changed. * Now you can edit or change privacy to messages after they are published. After a message it's edited, the date and time of the message is changed.
* Fixed a bug when uploading.
## 0.4.0 ## 0.4.0

4
app.py
View file

@ -149,6 +149,10 @@ class Relationship(BaseModel):
UPLOAD_DIRECTORY = 'uploads/' UPLOAD_DIRECTORY = 'uploads/'
# fixing directory name because of imports from other directory
if __name__ != '__main__':
UPLOAD_DIRECTORY = os.path.join(os.path.dirname(__file__), UPLOAD_DIRECTORY)
class Upload(BaseModel): class Upload(BaseModel):
# the extension of the media # the extension of the media
type = TextField() type = TextField()