Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Mareš
Postal Owl
Commits
7ee5fdd8
Commit
7ee5fdd8
authored
Oct 01, 2021
by
Martin Mareš
Browse files
Fix URL in e-mail notifications
parent
5f6c83af
Changes
1
Hide whitespace changes
Inline
Side-by-side
owl.py
View file @
7ee5fdd8
...
...
@@ -1697,7 +1697,7 @@ def send_notify_to_dest(post, topic, course, author, target, dest, reply_to):
]
if
post
.
modified
:
h
.
append
((
'Updated'
,
post
.
modified
.
replace
(
microsecond
=
0
).
astimezone
().
strftime
(
"%Y-%m-%d %H:%M:%S"
)))
h
.
append
((
'URL'
,
url_for
(
'topic_index'
,
sident
=
course
.
ident
,
cident
=
course
.
ident
,
tident
=
topic
.
ident
,
student_uid
=
target_uid
,
_external
=
True
,
_scheme
=
'https'
)))
h
.
append
((
'URL'
,
url_for
(
'topic_index'
,
sident
=
course
.
s
ident
,
cident
=
course
.
ident
,
tident
=
topic
.
ident
,
student_uid
=
target_uid
,
_external
=
True
,
_scheme
=
'https'
)))
h
.
append
((
'Points'
,
post
.
points
if
post
.
points
is
not
None
else
'-'
))
head
=
"
\n
"
.
join
([
"{:12} {}"
.
format
(
p
[
0
]
+
':'
,
p
[
1
])
for
p
in
h
])
+
"
\n\n
"
body
=
post
.
comment
or
""
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment