mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2024-12-23 22:19:49 +00:00
copying language when reply
This commit is contained in:
parent
6a233f6cb2
commit
14898fea07
@ -19,4 +19,5 @@ type ReplyContext struct {
|
||||
ReplySpoiler string
|
||||
ReplyContent string
|
||||
ForceVisibility bool
|
||||
ReplyLanguage string
|
||||
}
|
||||
|
@ -362,6 +362,8 @@ func (s *service) ThreadPage(c *client, id string, reply bool) (err error) {
|
||||
visibility = c.s.Settings.DefaultVisibility
|
||||
}
|
||||
|
||||
replyLanguage := status.Language
|
||||
|
||||
pctx = model.PostContext{
|
||||
DefaultVisibility: visibility,
|
||||
DefaultFormat: c.s.Settings.DefaultFormat,
|
||||
@ -372,6 +374,7 @@ func (s *service) ThreadPage(c *client, id string, reply bool) (err error) {
|
||||
ReplySpoiler: spoilerText,
|
||||
ReplyContent: content,
|
||||
ForceVisibility: isDirect,
|
||||
ReplyLanguage: replyLanguage,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
@ -48,7 +48,7 @@
|
||||
<button type="submit" accesskey="P" title="Post (P)"> Post </button>
|
||||
<button type="reset" title="Reset"> Reset </button>
|
||||
<input id="edit-status-id" name="edit-status-id" placeholder="Input Status ID for edit" title="Edit ID">
|
||||
<input id="lang-code" name="lang-code" placeholder="lang" title="Post language (ISO 639) [en, ru, etc..] Default: none" size="4">
|
||||
<input id="lang-code" name="lang-code" placeholder="lang" title="Post language (ISO 639) [en, ru, etc..] Default: none" size="4" value="{{if .ReplyContext}}{{.ReplyContext.ReplyLanguage}}{{end}}">
|
||||
<input type="number" id="expires-in" name="expires-in" title="Post autodeleted after hour(s)" min="0" value="0" size="4">
|
||||
<input type="datetime-local" id="scheduled" name="scheduled" step=300 title="Schedule your status (timezone UTC+0)">
|
||||
</form>
|
||||
|
Loading…
Reference in New Issue
Block a user