Recent content by yar

  1. yar

    XF 2.2 Trophy award using API?

    Are all trophies strictly "predefined criterias-based" and can't be awarded per user "manually"? (except for building long list of usernames separated by commas under "Username is:" criteria in trophy settings). Can I create new trophy without any criteria checked under "Award this trophy if...
  2. yar

    XF 2.2 Manual upgrading from 2.2.13 to 2.2.15 - compileAst() error

    I have solved my problem. If anyone else would be facing it, I have highlighted my custom PAGE_CONTAINER diff that was breaking upgrade process with error above (some old forgotten styles comments)-
  3. yar

    XF 2.2 Manual upgrading from 2.2.13 to 2.2.15 - compileAst() error

    When doing manual upgrade process from v2.2.13 to 2.2.15 I am getting error like: TypeError: XF\Template\Compiler::compileAst(): Argument #1 ($ast) must be of type XF\Template\Compiler\Ast, bool given, called in /opt/APP/public/community/src/XF/Service/Template/Compile.php on line 28 in...
  4. yar

    Awaiting feedback silent and clear_edit parameters are ignored in "POST /api/posts/:id"

    Ok, the moment I gave user Forum moderator permissions "Edit any post", it started to work as expected. So, silent and clear_edit flags are allowed only to those who have "Edit any post", regular "Edit own posts" is not enough. Thanks for clarification! It would make sense for API intead of...
  5. yar

    Awaiting feedback silent and clear_edit parameters are ignored in "POST /api/posts/:id"

    Making request like this to edit post via XF's REST API: Post is succesfully edited without any error messages but both silent and clear_edit params are being ignored. Tried values like "1" and "true" - no difference, not working. I would expect this to work as mentioned in REST API endpoints...
  6. yar

    XF 2.2 As admin make user watch thread?

    I ran few tests and don't see new record in xf_thread_watch table when mentioning another user, thus I assume Watch subscription is not created in that case, just one time notification probably. I need 'Watch'. 🤷‍♂️
  7. yar

    XF 2.2 As admin make user watch thread?

    What if directly inject into database some data? Which tables should I look at? UPDATED: If I inject data record directly into xf_thread_watch, is it enough?
  8. yar

    XF 2.2 As admin make user watch thread?

    Is there a way for me as administrator to have particular user watch particular thread? Is there such tool somewhere inside admin area? As alternative, maybe triggering API that would subscribe user to the thread under superuser key on behalf of that user ... 🤔 Thanks in advance for help!
  9. yar

    XF 2.2 API to logout a user?

    Any information how can I logout a user outside of XenForo? Cookies 'xf_user' and 'xf_session' are HttpOnly thus making things complicated when main app is SPA (single page app). Would be great to have API similar to POST auth/login-token but POST auth/logOUT with the similar input parameters...
  10. yar

    XF 2.2 get current xf URL/path value inside template?

    $xf.uri is exactly what I needed! Thanks! Two more questions from this context- 1) Did I miss some documentation where to look for all the variables and functions available for use inside templates? (so I bother you less next time) 2) Is it safe to use: <a href="{{ link('/hard/coded?q=' ...
  11. yar

    XF 2.2 get current xf URL/path value inside template?

    I am looking for a way how to retrieve current URL/path inside template? Want to inject it inside href="...." value, to redirect user back where he was on forum. Maybe there is some var or func that holds it? current_url(), {{ $current_url }}, etc ? Thanks!
  12. yar

    XF 2.2 API to logout a user?

    Is there API that would logout a user - invalidate all authenticated active sessions for the user. Need this to integrate into my main site 'logout' flow, so that user logouts in one place only. Looked over documentation but did not find an answer. Thanks!
  13. yar

    Not a bug remember_cookie from /api/auth/from-session and xf_user cookie

    Ok, I have just realized that content-type: application/x-www-form-urlencoded I guess assumes to hold exactly urlencoded() values, so %2C is fully legitimate to use instead of comma. Thanks for clarification!
  14. yar

    Not a bug remember_cookie from /api/auth/from-session and xf_user cookie

    I look in my browser for the cookie value and just copy it as remember_cookie param value (cURL request, postman, etc). Cookie has comma as %2C, while API expects raw comma.
  15. yar

    Not a bug remember_cookie from /api/auth/from-session and xf_user cookie

    xf_user cookie has urlencoded comma value stored (i.e. 'n%2Cnnnnnnnnn...' instead of just 'n,nnnnnn....'), thus making /api/auth/from-session failing when passing that value as is. I had to look through the /api source code in order to understand what is wrong and why it did not like my valid...
Top Bottom