GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    p (p@shitposter.club)'s status on Tuesday, 12-Mar-2024 00:08:14 JSTpp
    in reply to
    • ロミンちゃん
    • Judge Dread
    @romin @judgedread Did not work for me, but I wouldn't put it past most web "frameworks" to do this in an order-dependent manner, so lemme try putting it before like r did.

    diff --git a/mastodon/mastodon.go b/mastodon/mastodon.go
    index 8e2fa04..bb979cd 100644
    --- a/mastodon/mastodon.go
    +++ b/mastodon/mastodon.go
    @@ -73,6 +73,11 @@ func (c *Client) doAPI(ctx context.Context, method string, uri string, params in
    if err != nil {
    return err
    }
    + err = mw.WriteField("description", filepath.Base(file))
    + if err != nil {
    + mw.Close()
    + return err
    + }
    err = mw.Close()
    if err != nil {
    return err
    @@ -99,6 +104,11 @@ func (c *Client) doAPI(ctx context.Context, method string, uri string, params in
    if err != nil {
    return err
    }
    + err = mw.WriteField("description", filepath.Base(file.Filename))
    + if err != nil {
    + mw.Close()
    + return err
    + }
    err = mw.Close()
    if err != nil {
    return err
    In conversationabout a year ago from shitposter.clubpermalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.

Embed this notice