Skip to content

Twig incompatibility issues with other Nextcloud apps #198

@dave-kennedy

Description

@dave-kennedy

This code in my template causes the page to timeout:

{{ [page.author, page.date_formatted] | filter(v) | join(' | ') }}

This seems to work fine however:

{{ [page.author, page.date_formatted] | filter(v => v is not empty) | join(' | ') }}

The former works in my dev environment, which has nothing to do with Nextcloud, but not on my prod website, which is using the Nextcloud integration.

Nextcloud version: 23.0.3
Pico CMS for Nextcloud version: 1.0.18

I'd love to tell you which Twig version I have but not sure how.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions