Other fixes
This commit is contained in:
parent
9dfead5e9c
commit
309009d3a4
2 changed files with 5 additions and 0 deletions
|
|
@ -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
4
app.py
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue