• Resolved maiki

    (@maiki)


    The plugin works fine in all other respects, as far as I can tell. It is being used at the bottom of my site at http://interi.org.

    The problem comes from federated replies; it appears that the plugin assumes the replies are from the same site, so they append them to the domain that the widget is pulling from.

    My StatusNet instance is single-user, so all replies are from other sites. So, if my site is http://example.com/maiki, and I send a reply to http://identi.ca/creativecommons, the @creativecommons in the widget will link to http://example.com/creativecommons.

    As an aside, my personal instance is in a sub-directory, rather than a sub-domain. It pulls the updates fine, but you might want to check for path when you change how the replies are handled. ^_^

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author zhenech

    (@zhenech)

    Heya,

    thanks for the feedback!
    Your number 2 was easy to fix.
    Number 1 was a bit more tricky: I used the title of the feed items and parsed the users myself, but there I have no chance to see that the user comes from another statusnet instance. I now added an option (Prefer Content) to use the content of the feed item, which will just contain the correct link.
    I did not enable that one by default as I do not like to embed HTML from foreign sites in my site 😉

    Both changes are in SVN and Git, so you can test them.
    I still need to add some more documentation for that though.

    Thread Starter maiki

    (@maiki)

    Groovy, I am using it and it works fine.

    Right now you have this in the readme:

    = Why is ‘Prefer content with markup’ disabled by default? =
    I for myself do not like the idea of displaying markup from a remote/unknown/untrusted source in my site. In theory Twitter and co could inject any markup (incl JavaScript!) into my site.

    I would consider something like:

    =What is ‘Prefer content with markup’?=
    When this is checked, arbitrary markup is parsed from the source. I personally do not like the idea of displaying markup from a remote/unknown/untrusted source in my site. In theory Twitter and co could inject any markup (incl JavaScript!) into my site.

    However, in certain setups, such as StatusNet’s federation, this will fix username links when replying to people across instances (i.e. from a personal StatusNet site to indenti.ca).

    Consider the risks, and decided if this works for you.

    Thanks again! ^_^

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: StatusNet Widget] Usernames don't consider federated replies’ is closed to new replies.