Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Querying only first posts yields an SQL error #4

Open
desertkun opened this issue Aug 24, 2021 · 2 comments
Open

Querying only first posts yields an SQL error #4

desertkun opened this issue Aug 24, 2021 · 2 comments

Comments

@desertkun
Copy link

See this live example: https://spectrumcomputing.co.uk/forums/app.php/smartfeed/feed?u=1360&e=hh8v0WVJXxmAl3zq7nWRsS50DqM3vdO2VbkSFeNs3rnNfgjpNTc6uSOmot707klsATgDEzhs4hMBE8oso2dNwwUvB5r2xqtC966COhuG1B4.&l=1&fp=1&t=1&x=25&s=0&i=0&y=0&d=3&w=0

I have configured Types of posts in feed to be First posts of topics only. Doing the same with last posts, surprisingly, works.

@MarkDHamill
Copy link
Owner

MarkDHamill commented Aug 24, 2021

Thanks. Line 393 in /controller/feed.php should be:

$new_topics_sql = " AND t.topic_time > $this->time_limit ";

$this->date_limit is an obsolete private variable.

All instances of $this->date_limit in feed.php should be replaced with $this->time_limit.

Will be fixed in next version.

@MarkDHamill MarkDHamill changed the title Quierying only first posts yields an SQL error Querying only first posts yields an SQL error Aug 24, 2021
@desertkun
Copy link
Author

Thanks. Looking forward in the upcoming release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants