mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-11 15:27:30 -06:00
find a bug and squish it up and all day long you'll have good luck
This commit is contained in:
parent
c72938bcc8
commit
f257f779a9
5 changed files with 63 additions and 11 deletions
|
|
@ -146,7 +146,7 @@ func (m *Module) prepareProfile(c *gin.Context) *profile {
|
|||
statusResp, errWithCode := m.processor.Account().WebStatusesGet(
|
||||
ctx,
|
||||
account.ID,
|
||||
false, // mediaOnly = false
|
||||
mediaOnly,
|
||||
maxStatusID,
|
||||
)
|
||||
if errWithCode != nil {
|
||||
|
|
@ -169,6 +169,11 @@ func (m *Module) prepareProfile(c *gin.Context) *profile {
|
|||
// mode for the target account profile, and serves that.
|
||||
func (m *Module) profileGETHandler(c *gin.Context) {
|
||||
p := m.prepareProfile(c)
|
||||
if p == nil {
|
||||
// Something went wrong,
|
||||
// error already written.
|
||||
return
|
||||
}
|
||||
|
||||
// Choose desired web renderer for this acct.
|
||||
switch wrm := p.account.WebLayout; wrm {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue